﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Astudio.FileManagement.Template;

namespace AStudio.TemplateEditor
{
    public partial class Form1 : Form
    {

        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            TemplateWriter writer = new TemplateWriter();
            writer.WriteTemplateName("Default");
            writer.WriteTemplateVersion(2, 0);
            writer.WriteBackgroundPicPath("none");
            writer.WriteHeadingFont("Calibri");
            writer.WriteHeadingFontSize(16);
            writer.WriteHeadingPosition(20, 20);
            writer.WriteMainLabelPosition(20, 50);
            writer.WriteMainLabelFont("Arial");
            writer.WriteMainLabelFontSize(12);
            writer.FlushToFile(Application.StartupPath + @"\Templates\Default.astudio");
            MessageBox.Show("Done");
        }
    }
}
